package com.lp.model.exception;

import com.lp.model.config.AppResult;

/**
 * 自定义异常
 */
public class ApplicationException extends RuntimeException {

    private AppResult errResult;

    public ApplicationException(AppResult errResult) {
        super(errResult.getMsg());
        this.errResult = errResult;
    }

    public AppResult getErrResult() {
        return errResult;
    }

}
